	
//	var host = 'http://123.56.91.209:8080/findCows';
//	var host = 'http://zhaoniuw.com:8080/findCows';
	ImporInfor();
	//实名认证
	var urlType = '',
		dataType = '',
		valName = '',
		valIdentity = '';
//	askPostData(urlType)
		//请求数据     post请求方式  //这是需要清空页面ajax
		
	$('#realName button').on('click',function(){
		valName = $('#realName input').eq(0).val();
		valIdentity = $('#realName input').eq(1).val();
		console.log(valName,valIdentity)
	
		if(valName == ''){
			$('#realName input').eq(0).attr('placeholder','请输入真实姓名')
		}
		if(valIdentity == ''){
			$('#realName input').eq(1).attr('placeholder','请输入真实省份证号码')
		}
		if(valName == '' || valIdentity == ''){

			alert("信息填写不完整")
		
		}else{
			
			console.log(valName,valIdentity)
				//发送ajax  
				//接口 2.1.34
			urlType = '/myhome/account/authenticate';
			dataType = "identityName=" + valName + "&indetityNumber=" + valIdentity +"&" + Infornation;
			console.log(dataType)
			askPostData(urlType);
		}
	})
	
	function askPostData(num){
		$.ajax({
			url:host + num,
			type:"post",
			data:dataType,
			success:function(res){
				console.log(res)
				if(res.success == true){
					console.log("请求成功")
					//生成数据时页面清空
					alert('修改成功')
					window.location.href="personal.html";
				}else{
					alert('已实名认证')
					window.location.href="personal.html";
//					console.log(res)
//					console.log("请求失败")
				}
			}
		});
	}